import javax.net.ssl.SSLContextSpi;
import java.util.Scanner;

public class 成绩计算 {
    public static void main(String []args){
        int sum=0;
        Scanner in=new Scanner(System.in);
        for(int i=0;i<=5;i++){
            System.out.println("输入成绩：");
            int score=in.nextInt();
            if(score<0 || score>100){
               System.out.println("输入错误，请输入正确分数。");
            }
            else{
                sum=sum+score;
                System.out.println("成绩和为"+sum);
            }

        }
        }
    }